<template>
  <div>
    <p>读者信息</p>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        userId: ''
      }
    },
    vuex: {
      getters: {
      },
      actions: {
      }
    },
    route: {
      data () {
        if (JSON.parse(window.sessionStorage.getItem('wxOauth2'))) {
          this.userId = JSON.parse(window.sessionStorage.getItem('wxOauth2')).userId
        }
      }
    },
    ready () {
      console.log('userId', this.userId);
    }
  }
</script>
<style lang="less">
</style>
